<?php
defined('_JEXEC') or die;
$this->setGenerator(null);
// Custom page title
$app = JFactory::getApplication();
$menu = $app->getMenu();
$view = 'innner';
if ($menu->getActive() == $menu->getDefault()) {
	$view = 'frontpage';
}

/* The following line loads the MooTools JavaScript Library */
JHtml::_('behavior.framework', true);

/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
?>
<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
	<head>
		<jdoc:include type="head" />
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/webfront/stylesheet.css" type="text/css" />
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles.css" type="text/css" />
	</head>
	<body class="body">
	
<?php if($view == 'frontpage'): ?>
	
		<div id="inner_wrapper">
		<div class="wrapper">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr><td height="402" valign="top">
				<div id="header">
					<div id="top_logo">
						<a href="home"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo_03.png" alt="top logo" width="181" height="181" border="0" /></a>
					</div>
					<div id="top_social">
						<table width="64" border="0" cellspacing="0" cellpadding="0">
							<tr><td>
								<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo_06.png" width="25" height="25" />
							</td><td>
								<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo_08.png" width="25" height="25" />
							</td></tr>
						</table>
					</div>
				</div>
				<iframe src="banner/index.html" width="1000" marginwidth="0" height="456" marginheight="0" scrolling="No" frameborder="0" border="0"></iframe>
			</td></tr>
			<tr><td>
				<div id="nav">
					<div id="top_menu">
						<jdoc:include type="modules" name="protechdivecollege-topmenu" style="none" />
					</div>
				</div>
			</td></tr>
			<tr><td background="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/content-bg_03.jpg">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
					  <td>&nbsp;</td>
					</tr>
					<tr>
					  <td>
					  <table width="950" height="116" border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
						<td width="30%" height="55" valign="top">
							<jdoc:include type="modules" name="protechdivecollege-home-bottomleft" style="none" />
						</td>
						<td width="30%" valign="top">
							<jdoc:include type="modules" name="protechdivecollege-home-bottommiddle" style="none" />			
						</td>
						<td width="30%">
							<jdoc:include type="modules" name="protechdivecollege-home-bottomright" style="none" />
						</td>
						</tr>
					  </table>
					</td></tr>
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
			</td></tr>
		</table>
		</div>
		</div>
		
<?php else: ?>

		<div id="menu_wrapper">
		<div class="wrapper">
			<div id="logo_menu_wrapper">
				<div id="header">
					<div id="top_logo_inner"><a href="home"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo_03.png" alt="top logo" width="181" height="181" border="0" /></a></div>
					<div id="top_social">
						<table width="64" border="0" cellspacing="0" cellpadding="0">
							<tr><td>
								<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo_06.png" width="25" height="25" />
							</td><td>
								<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo_08.png" width="25" height="25" />
							</td></tr>
						</table>
					</div>
				</div>
				<div id="nav-inner">
					<div id="top_menu">
						<jdoc:include type="modules" name="protechdivecollege-topmenu" style="none" />
					</div>
				</div>
				<div class="clr"></div>
			</div>
		</div>
		</div>
		
		<div id="inner_wrapper">
		<div class="wrapper">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr><td>
					<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/nav-bg_07.jpg" width="1000" height="24" />
				</td></tr>
				<tr>
				  <td>&nbsp;</td>
				</tr>
				<tr><td>
					<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
						<tr valign="top">
						<?php if ($this->countModules('protechdivecollege-sidebar')): ?>
							<td width="260" height="385">
								<div class="left_inner">
									<jdoc:include type="modules" name="protechdivecollege-sidebar" style="none" />
								</div>
							</td>
							<td width="40">
								<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/line.jpg" width="17" height="385" />
							</td>
							<td width="650">
								<jdoc:include type="component" />
								<p align="justify"><br /></p>
							</td>
						<?php else: ?>
							<td width="950">
								<jdoc:include type="component" />
								<p align="justify"><br /></p>
							</td>
						<?php endif; ?>
						</tr>
						<tr valign="top">
						  <td colspan="3"><h1>&nbsp;</h1></td>
						</tr>
					</table>
				</td></tr>
				<tr>
				  <td>&nbsp;</td>
				</tr>
			</table>
		</div>
		</div>

<?php endif; ?>

		<div class="clr"></div>
		<div class="footer">
			<p>Copyright &copy;<?php echo date('Y'); ?> <?php echo htmlspecialchars($app->getCfg('sitename')); ?>. All Rights Reserved.</p>
		</div>
		<jdoc:include type="modules" name="debug" />
	</body>
</html>